/****************************************************
          File Name:10-8.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Wed 24 Dec 2014 12:40:15 PM CST
*****************************************************/

#include"10-8.h"

int main()
{
    List mine;

    std::cout << "show orignal List\n";
    mine.show();

    while(!mine.isfull())
        mine.add();

    std::cout << "show the List\n";
    mine.show();

    std::cout << "Enter the name you wanna delete from List: ";
    string name;
    std::getline(std::cin, name);
    mine.rm(name);

    std::cout << "show the List\n";
    mine.show();
    
    mine.destroy();

    return 0;
}
